﻿@using Netcaso_MVC.WebUtilities
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - @MVCLocalization.getLocale("ApplicationTitle")</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/menu.css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/Scripts/menu.js")
</head>
<body>
    <header>
        <div class="content-wrapper">
            <div class="float-left">
                <p class="site-title">
                    <a href="@Url.Action("Index", "Home")">
                        <img src='/images/netcaso_logo.png' width='200' height='35' alt='' />
                    </a>
                </p>
            </div>
            <div class="float-right">
                @{
                    var list = new[] {   
                        new TimKiemViet_VN.Models.LanguageModel { Value = "en-US", Name = "English" }, 
                        new TimKiemViet_VN.Models.LanguageModel { Value = "vi-VN", Name = "Tiếng Việt" }
                    };
                }
                @Html.DropDownList("cbxLanguage", new SelectList(list, "Value", "Name"), new { @class = "float-right" })
                <section id="login" class="float-right">
                    @Html.Partial("_LoginPartial")
                </section>
                <nav>
                    <div id="menu">
                        <ul class="menu">
                            <li>@Html.ActionLink(MVCLocalization.getLocale("HTMLControlMenu"), "HTMLControlManagement", "AdminHTMLControl")
                            </li>
                            <li>@Html.ActionLink(MVCLocalization.getLocale("ArticleManagement"), "ArticleManagement", "AdminArticle")
                                <ul>
                                    <li>@Html.ActionLink(MVCLocalization.getLocale("ArticleCategoryManagement"), "ArticleCategoryManagement", "AdminArticle")</li>
                                </ul>
                            </li>
                            <li>@Html.ActionLink(MVCLocalization.getLocale("UserMenu"), "MemberManagement", "Admin")
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
    </header>
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>
                    &copy; @DateTime.Now.Year - @MVCLocalization.getLocale("ApplicationTitle")</p>
            </div>
        </div>
    </footer>
    @RenderSection("scripts", required: false)
</body>
</html>
